<script setup lang='ts'>
import { onLaunch } from '@dcloudio/uni-app'
import { useAppStore } from './stores/app'
// import { useStore } from './stores/article'

const appStore = useAppStore()
// import { getToken } from '@/utils/auth'

onLaunch(async () => {
  // 获取APP配置
  // await appStore.getConfig()
  // #ifdef H5
  // await getUser()
  // #endif
  // #ifndef H5
  // if (getToken()) {
  //   await getUser()
  // }
  // #endif
  let userInfo = uni.getStorageSync('userInfo');
  if(userInfo){
    appStore.userInfo = JSON.parse(userInfo);
  }
  appStore.getVersion();
})
</script>
<style lang='scss'>
@import 'tailwindcss/base';
	@import 'tailwindcss/utilities';
	@import 'tailwindcss/components';
@import "@/uni_modules/vk-uview-ui/index.scss";
</style>
